<%@ tag pageEncoding="UTF-8" %>
<%@ include file="includes.tagf" %>
<%@ attribute name="chartSWF" rtexprvalue="true" required="true"%>
<%@ attribute name="chartId" rtexprvalue="true" required="true"%>
<%@ attribute name="strURL" rtexprvalue="true"%>
<%@ attribute name="strXML" rtexprvalue="true"%>
<%@ attribute name="chartWidth" rtexprvalue="true" type="java.lang.Integer" required="true"%>
<%@ attribute name="chartHeight" rtexprvalue="true" type="java.lang.Integer" required="true"%>
<%@ attribute name="debugMode" rtexprvalue="true" type="java.lang.Boolean"%>
<%@ attribute name="registerWithJS" rtexprvalue="true" type="java.lang.Boolean"%>
<!-- START Script Block for Chart-->
<div id='${chartId}Div' align='center' style="z-index:-1;">
</div>
<script type='text/javascript'>
var chart_${chartId} = new FusionCharts('<c:url value="${chartSWF}"/>', '${chartId}', '${chartWidth}', '${chartHeight}', ${debugMode ? 1:0}, ${registerWithJS? 0:1});
chart_${chartId}.addParam("WMode", "Opaque");
<c:if test="${not empty strURL}">chart_${chartId}.setDataURL("<c:url value="${strURL}"/>");</c:if>
<c:if test="${not empty strXML}">chart_${chartId}.setDataXML("${strXML}");</c:if>
chart_${chartId}.render('${chartId}Div');
</script>
<!--END Script Block for Chart-->